from bpy_types import Operator
from ogreEx.blender.props import StringProperty
from ogreEx.helper import select_group
from ogreEx.ui.UIClass import OPERATOR

@OPERATOR
class INFO_MT_group(Operator):
    '''select group'''
    bl_idname = "ogre.select_group"
    bl_label = "Select Group"
    bl_options = {'REGISTER'}                              # Options for this panel type
    mystring= StringProperty(name="MyString", description="hidden string", maxlen=1024, default="my string")
    
    @classmethod
    def poll(cls, context):
        return True
        
    def invoke(self, context, event):
        select_group( context, self.mystring )
        return {'FINISHED'}